﻿using System;
using System.ComponentModel.DataAnnotations.Schema;
using RealtReview.DataAccess.Entities.IdentityProvider;

namespace RealtReview.DataAccess.Entities
{
    [Table("Message")]
    public class Message : BaseEntity
    {
        public string Title { get; set; }
        public string Text { get; set; }
        public DateTime DateCreated { get; set; }
        public MessagePriority Priority { get; set; }
        //прочитано
        public bool Read { get; set; }
        public Guid UserFromId { get; set; }
        public ApplicationUser UserFrom { get; set; }
        public Guid UserToId { get; set; }
        public ApplicationUser UserTo { get; set; }
    }
}